import React,{Component} from 'react';
import CmtItem from '@/components/CmtItem';
import cssObj from '@/css/common.scss';
console.log(cssObj);
import bootcss from 'bootstrap/dist/css/bootstrap.css'
console.log(bootcss);

export default class CmtList extends Component{
    constructor(){
        super();
        this.state={
              cmtList:[{id:1,user:'gainorloss',content:'gainorloss'},
              {id:2,user:'gainorloss2',content:'gainorloss2'},
              {id:3,user:'gainorloss3',content:'gainorloss3'}]
        };
    }

    render(){
        return <div className={['container','text-primary'].join(' ')}>
        <h1 className={cssObj.title}>评论列表</h1>
        {this.state.cmtList.map(item=><CmtItem key={item.id} {...item}></CmtItem>)}</div>;
    }
}